//
//  DYZLoginUserInfo.m
//  DYZCars
//
//  Created by MF on 16/8/21.
//  Copyright © 2016年 MF. All rights reserved.
//

#import "DYZLoginUserInfo.h"

@implementation DYZLoginUserInfo


- (void)encodeWithCoder:(NSCoder *)coder
{
    
    [coder encodeObject:_username forKey:@"username"];
    [coder encodeObject:_password forKey:@"password"];
}

- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super init];
    if (self) {
        _username =  [coder decodeObjectForKey:@"username"];
        _password = [coder decodeObjectForKey:@"password"];
    }
    return self;
}


-(NSString *)description {
    return [NSString stringWithFormat:@"username = %@,psd = %@",_username,_password];
}
@end
